package com.maigao.util;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fuwei
 * @className HolidayDto
 * @description TODO
 * @date 2022/3/11 10:09 下午
 */
@NoArgsConstructor
@Data
public class HolidayDto {

    @JsonProperty("code")
    private Integer code;
    @JsonProperty("type")
    private TypeDTO type;
    @JsonProperty("holiday")
    private HolidayDTO holiday;

    @NoArgsConstructor
    @Data
    public static class TypeDTO {
        @JsonProperty("type")
        private Integer type;
        @JsonProperty("name")
        private String name;
        @JsonProperty("week")
        private Integer week;
    }

    @NoArgsConstructor
    @Data
    public static class HolidayDTO {
        @JsonProperty("holiday")
        private Boolean holiday;
        @JsonProperty("name")
        private String name;
        @JsonProperty("wage")
        private Integer wage;
        @JsonProperty("date")
        private String date;
        @JsonProperty("rest")
        private Integer rest;
    }
}
